package com.wocai.jrt.orgadmin.flow.service.impl;

import javax.inject.Inject;
import javax.inject.Named;

import com.wocai.jrt.orgadmin.flow.dao.FlowInstanceDao;
import com.wocai.jrt.orgadmin.flow.model.FlowInstance;
import com.wocai.jrt.orgadmin.flow.model.FlowInstanceBean;
import com.wocai.jrt.orgadmin.flow.service.spi.FlowInstanceService;

import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;

/**
 * 流程实例相关的service业务实现。
 * @author yinlei
 * @date 2016-3-17 17:18:35
 */
@Named
public class FlowInstanceServiceImpl extends MyBatisServiceImpl<FlowInstance, FlowInstanceBean, String> implements FlowInstanceService {
	// 添加了方法后，记得改为private
	protected FlowInstanceDao flowInstanceDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<FlowInstance, FlowInstanceBean, String> flowInstanceDao) {
		this.baseDao = flowInstanceDao;
		this.flowInstanceDao = (FlowInstanceDao) flowInstanceDao;
	}
}
